We've covered this in
an earlier module, but let's review some
basic information on multi-regional
cloud computing. Google Cloud is a collection of data centers called regions, connected by a
very fast network. A region is a specific
geographical location where users can deploy
cloud resources. If you deploy a
Cloud Run service, the containers in this are
located in a single region. In an earlier module, we discussed Global
HTTPS Load Balancing. With the global
HTTPS load balancer, you can deploy identical
Cloud Run services in multiple regions or routing client requests to the Cloud
Run service closest to them. If you use a regional database, for example, Cloud
SQL or Memorystore, it is challenging to make sure the data is consistent
across regions, especially if they're far
away from each other. Some data stores also support
multi-regional locations, in which case, the
data is stored and accessible from more
than one region. Data in a multi-regional
location is also replicated in
multiple regions. Within a region, data is
replicated across zones. Think of multi-regional
locations like a continent and
regions like a city. I say continent when I refer to multi-regional
locations because you shouldn't think of a
multi-regional location like the entire world. Some data stores offer
multi-regional locations. Spanner does, Cloud Storage
does, Firestore also does. The benefits for choosing a multi-regional location are to maximize the availability and durability of your database. Multi-regional locations
can withstand the loss of entire regions and maintain availability without
losing data. Even though your data is replicated across
multiple regions, you can still access it as if it were a regional location. For application developers, this is an important benefit.